<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <!-- 导入layui的样式文件 -->
  <link rel="stylesheet" type="text/css" href="./assets/lib/layui/css/layui.css">
  <link rel="stylesheet" type="text/css" href="./assets/css/login.css">
</head>
<body>
  <!-- 左上角的图标 -->
  <div class="login-logo layui-container">
    <img src="./assets/images/logo.png" alt="">
  </div>
  <!-- 表单布局 -->
  <div class="login-box">
    <!-- 顶部标题 -->
    <div class="login-title"></div>
    <!-- 登录表单 -->
    <form id="login-form" class="layui-form" action="">
      <!-- 用户名 -->
      <div class="layui-form-item">
        <i class="layui-icon layui-icon-username"></i> 
        <input type="text" name="username" lay-verify="required|uname" placeholder="请输入用户名" autocomplete="off" class="layui-input">
      </div>
      <!-- 密码 -->
      <div class="layui-form-item">
        <i class="layui-icon layui-icon-password"></i> 
        <input type="password" name="password" lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input">
      </div>
      <!-- 提交按钮 -->
      <div class="layui-form-item">
        <button lay-submit class="layui-btn layui-btn-normal layui-btn-fluid" lay-filter="formDemo">提交</button>
      </div>
      <!-- 切换注册 -->
      <div class="login-reg">
        <a id="toReg" href="javascript:;">去注册账号</a>
      </div>
    </form>
    <!-- 注册表单 -->
    <form id="reg-form" class="layui-form" action="">
      <!-- 用户名 -->
      <div class="layui-form-item">
        <i class="layui-icon layui-icon-username"></i> 
        <input type="text" name="username" lay-verify="required|uname" placeholder="请输入用户名" autocomplete="off" class="layui-input">
      </div>
      <!-- 密码 -->
      <div class="layui-form-item">
        <i class="layui-icon layui-icon-password"></i> 
        <input type="password" name="password" lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input">
      </div>
      <!-- 确认密码 -->
      <div class="layui-form-item">
        <i class="layui-icon layui-icon-password"></i> 
        <input type="password" id="repwd" lay-verify="required|pwd|repwd" placeholder="请输入确认密码" autocomplete="off" class="layui-input">
      </div>
      <!-- 提交按钮 -->
      <div class="layui-form-item">
        <button lay-submit class="layui-btn layui-btn-normal layui-btn-fluid" lay-filter="formDemo">注册</button>
      </div>
      <!-- 切换注册 -->
      <div class="login-reg">
        <a id="toLogin" href="javascript:;">去登录</a>
      </div>
    </form>
  </div>
  <script type="text/javascript" src="./assets/lib/jquery.js"></script>
  <script type="text/javascript" src="./assets/lib/layui/layui.all.js"></script>
  <script type="text/javascript" src="./assets/js/common.js"></script>
  <script type="text/javascript" src="./assets/js/login.js"></script>
</body>
</html>